<?php
session_start();
// uncomment to enable output compression for all requests
// ob_start("ob_gzhandler");

require_once 'X/Loader.php';

X_Loader::registerAutoload();
// uncomment if Crossley framework is not in the path
// X_Loader::addIncludePath('../../lib/');

X_Broker::setPath('../applicaiton/controllers/');

// this will be used by the view engine for including styles
X_Broker::registerValue('theme_dir', '/themes/default/');

// get the registered instance of the broker (broker is not a singelton)
$oBroker = X_Broker::getInstance();
// allow for flat HTML file content
$oBroker->setHtmlFileContent();
	
	// allow debuging
    // $oBroker->setDebug();
    // allow development generation
    // $oBroker->setGenerate();

// output the response
print $oBroker->respond();
